package com.mango.httpforward.web.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@Data
@ConfigurationProperties(prefix = "forward")
public class ForwardProperties {

    private ProxyEntry proxy;

    private List<KvEntry> maps;

    @Data
    public static class KvEntry {

        private String key;

        private String value;

    }

    @Data
    public static class ProxyEntry {

        private String host;

        private int port;

    }

}
